<template>
    
</template>
<script>
export default {
    name: 'c_layer_bingmap',
    data() {
        return {
            viewer:null
        }
    },
    mounted () {
        let t=this
        this.$nextTick(()=>{
            t.Cesium=t.$parent.Cesium
            t.viewer=t.$parent.viewer
            t.load()
        })
    },
    methods:{
        load() {
            let t=this
            let {Cesium,viewer} =this
            viewer.imageryLayers.addImageryProvider(
                new Cesium.BingMapsImageryProvider({
                    url: "https://dev.virtualearth.net",
                    mapStyle: Cesium.BingMapsStyle.AERIAL,
                    key: 'Ap-OxKBLRL5HG3nnamuEC4ayECzWBr9_GmrKTuywVeiaQJzWl5rjGVIyqxjLQkDy',
                })
            )
            
        }
    }

}
</script>